import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import App from '@/App.vue'

const app = createApp(App)

app.use(ElementPlus, {
    locale: zhCn,
})
// 引入svg
import 'virtual:svg-icons-register'
// 安装自定义插件
import globalComponent from '@/components'
app.use(globalComponent)
// router
import router from "@/router";
import './router/permission'
app.use(router)
// pinia
import pinia from "@/store";
app.use(pinia)
// 引入全局样式
import '@/styles/index.scss'
app.mount('#app')
